/*
 * Copyright (c) 2021
 * User:mallplus多商户商城
 * File:OssConfig.java
 * Date:2021/01/12 19:29:12
 */

package com.qyine.rlmall.config;

import com.aliyun.oss.OSSClient;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * https://github.com/shenzhuan/mallplus on 2018/5/17.
 */
@Configuration
public class OssConfig {
   /* @Value("${oss.aliyun.defalut.endPoint}")
    private String ALIYUN_OSS_ENDPOINT;
    @Value("${oss.aliyun.defalut.accessKeyId}")
    private String ALIYUN_OSS_ACCESSKEYID;
    @Value("${oss.aliyun.defalut.accessKeySecret}")
    private String ALIYUN_OSS_ACCESSKEYSECRET;

    @Bean
    public OSSClient ossClient() {
        return new OSSClient(ALIYUN_OSS_ENDPOINT, ALIYUN_OSS_ACCESSKEYID, ALIYUN_OSS_ACCESSKEYSECRET);
    }*/
}
